package com.dces.jx.billtest.api.billManger;
import com.dces.jx.billtest.dto.billManger.DcDecLogDto;
import com.dces.jx.billtest.common.service.ExcelService;
import com.dces.jx.billtest.dto.billManger.DcDecLogParam;
import com.dces.jx.billtest.billManger.service.DcDecLogByStatusService;
import com.xdo.pcode.service.PCodeHolder;
import com.xdo.domain.PageParam;
import com.xdo.domain.ResultObject;
import com.xdo.springboot.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
 * generated by Generate dc
 * 
 *
 * @author xdoV2.0
 * @date: 2021-9-24
 */
@RestController
@RequestMapping("v1/dcDecLog1")
@Api(tags = "接口")
public class DcDecLogByStatusController extends BaseController {
    @Resource
    private DcDecLogByStatusService dcDecLogByStatusService;
    @Resource
    private PCodeHolder pCodeHolder;
    @Resource
    private ExcelService excelService;
    /**
     * @param dcDecLogParam
     * @param pageParam
     * @return
     */
    @ApiOperation("分页查询接口")
    @PostMapping("list")
    public ResultObject<List<DcDecLogDto>> getListPaged(@RequestBody DcDecLogParam dcDecLogParam, PageParam pageParam) {
        ResultObject<List<DcDecLogDto>> paged = dcDecLogByStatusService.selectAllPaged(dcDecLogParam, pageParam);
        return paged;
    }
}
